package com.sc.dal.mapper.advert;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sc.dal.model.ParamMap;
import com.sc.dal.model.advert.Advert;

public interface AdvertMapper {
	
    int deleteByPrimaryKey(Integer aId);

    int insert(Advert record);

    int insertSelective(Advert record);

    Advert selectByPrimaryKey(Integer aId);

    int updateByPrimaryKeySelective(Advert record);

    int updateByPrimaryKey(Advert record);

	List<Advert> selectList(ParamMap paramMap);

	List<Advert> getAdvertList(@Param("amount")Integer amount, @Param("type")String type);
}